import {
    request
} from "./request";
import qs from "qs";




// 医生说  获取详情 评论
export function getAppTopic(obj) {
    return request({
        url: "forum/getAppTopic",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 医生说  获取详情 评论
export function getAppTopicById(obj) {
    return request({
        url: "topic/getAppTopicById",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 医生说  获取详情 评论
export function addTopicPrise(obj) {
    return request({
        url: "topic/addTopicPrise",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 发布评论
export function addComment(obj) {
    return request({
        url: "topic/addComment",
        method: "post",
        data: qs.stringify(obj)
    });
}




// 获取首页  

export function getTopicAndVideo(obj) {
    return request({
        url: "forum/getTopicAndVideo",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 获取文章
export function getTopic(obj) {
    return request({
        url: "forum/getTopic",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取推荐
export function getRecommend(obj) {
    return request({
        url: "forum/getRecommend",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取视频
export function getVideo(obj) {
    return request({
        url: "forum/getVideo",
        method: "post",
        data: qs.stringify(obj)
    });
}












// 获取论坛数据
export function getCommunityMain(obj) {
    return request({
        url: "community/getCommunityMain",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取数据
export function getOthers(obj) {
    return request({
        url: "community/getOthers",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取相关推荐数据
export function getRecommendList(obj) {
    return request({
        url: "video/getRecommendList",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取弹窗
export function listAdv(obj) {
    return request({
        url: "community/listAdv",
        method: "post",
        data: qs.stringify(obj)
    });
}


// 论坛搜索内容
export function searchCommunity(obj) {
    return request({
        url: "community/searchCommunity",
        method: "post",
        data: qs.stringify(obj)
    });
}

// **************  大家说

// 获取大家说
export function getForumByPage(obj) {
    return request({
        url: "community/getForumByPage",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取大家说 相关信息
export function getForumComment(obj) {
    return request({
        url: "community/getForumComment",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 大家说  点赞
export function addRise(obj) {
    return request({
        url: "comment/addRise",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 大家说  回复内容
export function getReplayComment(obj) {
    return request({
        url: "comment/getReplayComment",
        method: "post",
        data: qs.stringify(obj)
    });
}



// 医生说  获取下一页
export function getTopicByPage(obj) {
    return request({
        url: "comment/getTopicByPage",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 视频  获取评论
export function getVideoComment(obj) {
    return request({
        url: "video/getVideoComment",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 视频  点赞
export function addHealthVideoLike(obj) {
    return request({
        url: "video/addHealthVideoLike",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 视频  发布评论
export function addHealthVideoComment(obj) {
    return request({
        url: "video/addHealthVideoComment",
        method: "post",
        data: qs.stringify(obj)
    });
}



// 视频  获取视频
export function getRandomVideo(obj) {
    return request({
        url: "video/getRandomVideo",
        method: "post",
        data: qs.stringify(obj)
    });
}







